public class WashingMachine {
     String brand; // 品牌
     String type; // 型号
   public void washClothes(){ // 洗衣服
       System.out.println(brand+"洗衣机"+"在洗衣服");

}

    public void dryClothes(){// 脱水
        System.out.println(brand+"洗衣机"+"在脱水");
}

    public void setTime() { // 定时
        System.out.println(brand+"洗衣机"+"定时");
       }
    public static void main(String[] args) {
        WashingMachine w1 = new WashingMachine();
        WashingMachine w2 = new WashingMachine();
            w1.brand = "海尔";
            w1.type = "A";
            w2.brand = "小天鹅";
            w2.type = "B";
            w1.washClothes();
            w2.dryClothes();
    }
}

